package com.perform.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author c-fanqj
 * @date 2023/3/26
 * @apiNote 服务测试类
 */
@RestController
@RequestMapping("/test")
public class TestController {

    private static final Logger logger =
            LoggerFactory.getLogger(TestController.class);

    // 测试服务是否正常
    @GetMapping("/mytest/{name}")
    public String mytest(@PathVariable String name) {
        //System.out.println("传入的值为：" + name);
        logger.info("传入的值为：{}", name);
        return "传入的值为：" + name;
    }

}
